<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>locale.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="closure_goog_locale_locale.js.html">locale.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Copyright 2006 The Closure Library Authors. All Rights Reserved.
<a name="line2"></a>//
<a name="line3"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line4"></a>// you may not use this file except in compliance with the License.
<a name="line5"></a>// You may obtain a copy of the License at
<a name="line6"></a>//
<a name="line7"></a>//      http://www.apache.org/licenses/LICENSE-2.0
<a name="line8"></a>//
<a name="line9"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line10"></a>// distributed under the License is distributed on an &quot;AS-IS&quot; BASIS,
<a name="line11"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line12"></a>// See the License for the specific language governing permissions and
<a name="line13"></a>// limitations under the License.
<a name="line14"></a>
<a name="line15"></a>/**
<a name="line16"></a> * @fileoverview Functions for dealing with Date formatting &amp; Parsing,
<a name="line17"></a> * County and language name, TimeZone list.
<a name="line18"></a> * @suppress {deprecated} Use goog.i18n instead.
<a name="line19"></a> */
<a name="line20"></a>
<a name="line21"></a>
<a name="line22"></a>/**
<a name="line23"></a> * Namespace for locale related functions.
<a name="line24"></a> */
<a name="line25"></a>goog.provide(&#39;goog.locale&#39;);
<a name="line26"></a>
<a name="line27"></a>goog.require(&#39;goog.locale.nativeNameConstants&#39;);
<a name="line28"></a>
<a name="line29"></a>
<a name="line30"></a>/**
<a name="line31"></a> * Set currnet locale to the specified one.
<a name="line32"></a> * @param {string} localeName Locale name string. We are following the usage
<a name="line33"></a> *     in CLDR, but can make a few compromise for existing name compatibility.
<a name="line34"></a> */
<a name="line35"></a>goog.locale.setLocale = function(localeName) {
<a name="line36"></a>  // it is common to see people use &#39;-&#39; as locale part separator, normalize it.
<a name="line37"></a>  localeName = localeName.replace(/-/g, &#39;_&#39;);
<a name="line38"></a>  goog.locale.activeLocale_ = localeName;
<a name="line39"></a>};
<a name="line40"></a>
<a name="line41"></a>
<a name="line42"></a>/**
<a name="line43"></a> * Retrieve the currnet locale
<a name="line44"></a> * @return {string} Current locale name string.
<a name="line45"></a> * @deprecated Use goog.LOCALE and goog.i18n instead.
<a name="line46"></a> */
<a name="line47"></a>goog.locale.getLocale = function() {
<a name="line48"></a>  if (!goog.locale.activeLocale_) {
<a name="line49"></a>    goog.locale.activeLocale_ = &#39;en&#39;;
<a name="line50"></a>  }
<a name="line51"></a>  return goog.locale.activeLocale_;
<a name="line52"></a>};
<a name="line53"></a>
<a name="line54"></a>
<a name="line55"></a>// Couple of constants to represent predefined Date/Time format type.
<a name="line56"></a>/**
<a name="line57"></a> * Enum of resources that can be registered.
<a name="line58"></a> * @enum {string}
<a name="line59"></a> */
<a name="line60"></a>goog.locale.Resource = {
<a name="line61"></a>  DATE_TIME_CONSTANTS: &#39;DateTimeConstants&#39;,
<a name="line62"></a>  NUMBER_FORMAT_CONSTANTS: &#39;NumberFormatConstants&#39;,
<a name="line63"></a>  TIME_ZONE_CONSTANTS: &#39;TimeZoneConstants&#39;,
<a name="line64"></a>  LOCAL_NAME_CONSTANTS: &#39;LocaleNameConstants&#39;,
<a name="line65"></a>
<a name="line66"></a>  TIME_ZONE_SELECTED_IDS: &#39;TimeZoneSelectedIds&#39;,
<a name="line67"></a>  TIME_ZONE_SELECTED_SHORT_NAMES: &#39;TimeZoneSelectedShortNames&#39;,
<a name="line68"></a>  TIME_ZONE_SELECTED_LONG_NAMES: &#39;TimeZoneSelectedLongNames&#39;,
<a name="line69"></a>  TIME_ZONE_ALL_LONG_NAMES: &#39;TimeZoneAllLongNames&#39;
<a name="line70"></a>};
<a name="line71"></a>
<a name="line72"></a>
<a name="line73"></a>// BCP 47 language code:
<a name="line74"></a>//
<a name="line75"></a>// LanguageCode := LanguageSubtag
<a name="line76"></a>//                (&quot;-&quot; ScriptSubtag)?
<a name="line77"></a>//                (&quot;-&quot; RegionSubtag)?
<a name="line78"></a>//                (&quot;-&quot; VariantSubtag)?
<a name="line79"></a>//                (&quot;@&quot; Keyword &quot;=&quot; Value (&quot;,&quot; Keyword &quot;=&quot; Value)* )?
<a name="line80"></a>//
<a name="line81"></a>// e.g. en-Latn-GB
<a name="line82"></a>//
<a name="line83"></a>// NOTICE:
<a name="line84"></a>// No special format checking is performed. If you pass a none valid
<a name="line85"></a>// language code as parameter to the following functions,
<a name="line86"></a>// you might get an unexpected result.
<a name="line87"></a>
<a name="line88"></a>
<a name="line89"></a>/**
<a name="line90"></a> * Returns the language-subtag of the given language code.
<a name="line91"></a> *
<a name="line92"></a> * @param {string} languageCode Language code to extract language subtag from.
<a name="line93"></a> * @return {string} Language subtag (in lowercase).
<a name="line94"></a> */
<a name="line95"></a>goog.locale.getLanguageSubTag = function(languageCode) {
<a name="line96"></a>  var result = languageCode.match(/^\w{2,3}([-_]|$)/);
<a name="line97"></a>  return result ? result[0].replace(/[_-]/g, &#39;&#39;) : &#39;&#39;;
<a name="line98"></a>};
<a name="line99"></a>
<a name="line100"></a>
<a name="line101"></a>/**
<a name="line102"></a> * Returns the region-sub-tag of the given language code.
<a name="line103"></a> *
<a name="line104"></a> * @param {string} languageCode Language code to extract region subtag from.
<a name="line105"></a> * @return {string} Region sub-tag (in uppercase).
<a name="line106"></a> */
<a name="line107"></a>goog.locale.getRegionSubTag = function(languageCode) {
<a name="line108"></a>  var result = languageCode.match(/[-_]([a-zA-Z]{2}|\d{3})([-_]|$)/);
<a name="line109"></a>  return result ? result[0].replace(/[_-]/g, &#39;&#39;) : &#39;&#39;;
<a name="line110"></a>};
<a name="line111"></a>
<a name="line112"></a>
<a name="line113"></a>/**
<a name="line114"></a> * Returns the script subtag of the locale with the first alphabet in uppercase
<a name="line115"></a> * and the rest 3 characters in lower case.
<a name="line116"></a> *
<a name="line117"></a> * @param {string} languageCode Language Code to extract script subtag from.
<a name="line118"></a> * @return {string} Script subtag.
<a name="line119"></a> */
<a name="line120"></a>goog.locale.getScriptSubTag = function(languageCode) {
<a name="line121"></a>  var result = languageCode.split(/[-_]/g);
<a name="line122"></a>  return result.length &gt; 1 &amp;&amp; result[1].match(/^[a-zA-Z]{4}$/) ?
<a name="line123"></a>      result[1] : &#39;&#39;;
<a name="line124"></a>};
<a name="line125"></a>
<a name="line126"></a>
<a name="line127"></a>/**
<a name="line128"></a> * Returns the variant-sub-tag of the given language code.
<a name="line129"></a> *
<a name="line130"></a> * @param {string} languageCode Language code to extract variant subtag from.
<a name="line131"></a> * @return {string} Variant sub-tag.
<a name="line132"></a> */
<a name="line133"></a>goog.locale.getVariantSubTag = function(languageCode) {
<a name="line134"></a>  var result = languageCode.match(/[-_]([a-z]{2,})/);
<a name="line135"></a>  return result ? result[1] : &#39;&#39;;
<a name="line136"></a>};
<a name="line137"></a>
<a name="line138"></a>
<a name="line139"></a>/**
<a name="line140"></a> * Returns the country name of the provided language code in its native
<a name="line141"></a> * language.
<a name="line142"></a> *
<a name="line143"></a> * This method depends on goog.locale.nativeNameConstants available from
<a name="line144"></a> * nativenameconstants.js. User of this method has to add dependency to this.
<a name="line145"></a> *
<a name="line146"></a> * @param {string} countryCode Code to lookup the country name for.
<a name="line147"></a> *
<a name="line148"></a> * @return {string} Country name for the provided language code.
<a name="line149"></a> */
<a name="line150"></a>goog.locale.getNativeCountryName = function(countryCode) {
<a name="line151"></a>  var key = goog.locale.getLanguageSubTag(countryCode) + &#39;_&#39; +
<a name="line152"></a>            goog.locale.getRegionSubTag(countryCode);
<a name="line153"></a>  return key in goog.locale.nativeNameConstants[&#39;COUNTRY&#39;] ?
<a name="line154"></a>      goog.locale.nativeNameConstants[&#39;COUNTRY&#39;][key] : countryCode;
<a name="line155"></a>};
<a name="line156"></a>
<a name="line157"></a>
<a name="line158"></a>/**
<a name="line159"></a> * Returns the localized country name for the provided language code in the
<a name="line160"></a> * current or provided locale symbols set.
<a name="line161"></a> *
<a name="line162"></a> * This method depends on goog.locale.LocaleNameConstants__&lt;locale&gt; available
<a name="line163"></a> * from http://go/js_locale_data. User of this method has to add dependency to
<a name="line164"></a> * this.
<a name="line165"></a> *
<a name="line166"></a> * @param {string} languageCode Language code to lookup the country name for.
<a name="line167"></a> * @param {Object=} opt_localeSymbols If omitted the current locale symbol
<a name="line168"></a> *     set is used.
<a name="line169"></a> *
<a name="line170"></a> * @return {string} Localized country name.
<a name="line171"></a> */
<a name="line172"></a>goog.locale.getLocalizedCountryName = function(languageCode,
<a name="line173"></a>                                               opt_localeSymbols) {
<a name="line174"></a>  if (!opt_localeSymbols) {
<a name="line175"></a>    opt_localeSymbols = goog.locale.getResource(&#39;LocaleNameConstants&#39;,
<a name="line176"></a>        goog.locale.getLocale());
<a name="line177"></a>  }
<a name="line178"></a>  var code = goog.locale.getRegionSubTag(languageCode);
<a name="line179"></a>  return code in opt_localeSymbols[&#39;COUNTRY&#39;] ?
<a name="line180"></a>      opt_localeSymbols[&#39;COUNTRY&#39;][code] : languageCode;
<a name="line181"></a>};
<a name="line182"></a>
<a name="line183"></a>
<a name="line184"></a>/**
<a name="line185"></a> * Returns the language name of the provided language code in its native
<a name="line186"></a> * language.
<a name="line187"></a> *
<a name="line188"></a> * This method depends on goog.locale.nativeNameConstants available from
<a name="line189"></a> * nativenameconstants.js. User of this method has to add dependency to this.
<a name="line190"></a> *
<a name="line191"></a> * @param {string} languageCode Language code to lookup the language name for.
<a name="line192"></a> *
<a name="line193"></a> * @return {string} Language name for the provided language code.
<a name="line194"></a> */
<a name="line195"></a>goog.locale.getNativeLanguageName = function(languageCode) {
<a name="line196"></a>  if (languageCode in goog.locale.nativeNameConstants[&#39;LANGUAGE&#39;])
<a name="line197"></a>    return goog.locale.nativeNameConstants[&#39;LANGUAGE&#39;][languageCode];
<a name="line198"></a>  var code = goog.locale.getLanguageSubTag(languageCode);
<a name="line199"></a>  return code in goog.locale.nativeNameConstants[&#39;LANGUAGE&#39;] ?
<a name="line200"></a>      goog.locale.nativeNameConstants[&#39;LANGUAGE&#39;][code] : languageCode;
<a name="line201"></a>};
<a name="line202"></a>
<a name="line203"></a>
<a name="line204"></a>/**
<a name="line205"></a> * Returns the localized language name for the provided language code in
<a name="line206"></a> * the current or provided locale symbols set.
<a name="line207"></a> *
<a name="line208"></a> * This method depends on goog.locale.LocaleNameConstants__&lt;locale&gt; available
<a name="line209"></a> * from http://go/js_locale_data. User of this method has to add dependency to
<a name="line210"></a> * this.
<a name="line211"></a> *
<a name="line212"></a> * @param {string} languageCode Language code to lookup the language name for.
<a name="line213"></a> * @param {Object=} opt_localeSymbols locale symbol set if given.
<a name="line214"></a> *
<a name="line215"></a> * @return {string} Localized language name of the provided language code.
<a name="line216"></a> */
<a name="line217"></a>goog.locale.getLocalizedLanguageName = function(languageCode,
<a name="line218"></a>                                                opt_localeSymbols) {
<a name="line219"></a>  if (!opt_localeSymbols) {
<a name="line220"></a>    opt_localeSymbols = goog.locale.getResource(&#39;LocaleNameConstants&#39;,
<a name="line221"></a>        goog.locale.getLocale());
<a name="line222"></a>  }
<a name="line223"></a>  if (languageCode in opt_localeSymbols[&#39;LANGUAGE&#39;])
<a name="line224"></a>    return opt_localeSymbols[&#39;LANGUAGE&#39;][languageCode];
<a name="line225"></a>  var code = goog.locale.getLanguageSubTag(languageCode);
<a name="line226"></a>  return code in opt_localeSymbols[&#39;LANGUAGE&#39;] ?
<a name="line227"></a>      opt_localeSymbols[&#39;LANGUAGE&#39;][code] : languageCode;
<a name="line228"></a>};
<a name="line229"></a>
<a name="line230"></a>
<a name="line231"></a>/**
<a name="line232"></a> * Register a resource object for certain locale.
<a name="line233"></a> * @param {Object} dataObj The resource object being registered.
<a name="line234"></a> * @param {goog.locale.Resource|string} resourceName String that represents
<a name="line235"></a> *     the type of resource.
<a name="line236"></a> * @param {string} localeName Locale ID.
<a name="line237"></a> */
<a name="line238"></a>goog.locale.registerResource = function(dataObj, resourceName, localeName) {
<a name="line239"></a>  if (!goog.locale.resourceRegistry_[resourceName]) {
<a name="line240"></a>    goog.locale.resourceRegistry_[resourceName] = {};
<a name="line241"></a>  }
<a name="line242"></a>  goog.locale.resourceRegistry_[resourceName][localeName] = dataObj;
<a name="line243"></a>  // the first registered locale becomes active one. Usually there will be
<a name="line244"></a>  // only one locale per js binary bundle.
<a name="line245"></a>  if (!goog.locale.activeLocale_) {
<a name="line246"></a>    goog.locale.activeLocale_ = localeName;
<a name="line247"></a>  }
<a name="line248"></a>};
<a name="line249"></a>
<a name="line250"></a>
<a name="line251"></a>/**
<a name="line252"></a> * Returns true if the required resource has already been registered.
<a name="line253"></a> * @param {goog.locale.Resource|string} resourceName String that represents
<a name="line254"></a> *     the type of resource.
<a name="line255"></a> * @param {string} localeName Locale ID.
<a name="line256"></a> * @return {boolean} Whether the required resource has already been registered.
<a name="line257"></a> */
<a name="line258"></a>goog.locale.isResourceRegistered = function(resourceName, localeName) {
<a name="line259"></a>  return resourceName in goog.locale.resourceRegistry_ &amp;&amp;
<a name="line260"></a>      localeName in goog.locale.resourceRegistry_[resourceName];
<a name="line261"></a>};
<a name="line262"></a>
<a name="line263"></a>
<a name="line264"></a>/**
<a name="line265"></a> * This object maps (resourceName, localeName) to a resourceObj.
<a name="line266"></a> * @type {Object}
<a name="line267"></a> * @private
<a name="line268"></a> */
<a name="line269"></a>goog.locale.resourceRegistry_ = {};
<a name="line270"></a>
<a name="line271"></a>
<a name="line272"></a>/**
<a name="line273"></a> * Registers the timezone constants object for a given locale name.
<a name="line274"></a> * @param {Object} dataObj The resource object.
<a name="line275"></a> * @param {string} localeName Locale ID.
<a name="line276"></a> * @deprecated Use goog.i18n.TimeZone, no longer need this.
<a name="line277"></a> */
<a name="line278"></a>goog.locale.registerTimeZoneConstants = function(dataObj, localeName) {
<a name="line279"></a>  goog.locale.registerResource(
<a name="line280"></a>      dataObj, goog.locale.Resource.TIME_ZONE_CONSTANTS, localeName);
<a name="line281"></a>};
<a name="line282"></a>
<a name="line283"></a>
<a name="line284"></a>/**
<a name="line285"></a> * Registers the LocaleNameConstants constants object for a given locale name.
<a name="line286"></a> * @param {Object} dataObj The resource object.
<a name="line287"></a> * @param {string} localeName Locale ID.
<a name="line288"></a> */
<a name="line289"></a>goog.locale.registerLocaleNameConstants = function(dataObj, localeName) {
<a name="line290"></a>  goog.locale.registerResource(
<a name="line291"></a>      dataObj, goog.locale.Resource.LOCAL_NAME_CONSTANTS, localeName);
<a name="line292"></a>};
<a name="line293"></a>
<a name="line294"></a>
<a name="line295"></a>/**
<a name="line296"></a> * Registers the TimeZoneSelectedIds constants object for a given locale name.
<a name="line297"></a> * @param {Object} dataObj The resource object.
<a name="line298"></a> * @param {string} localeName Locale ID.
<a name="line299"></a> */
<a name="line300"></a>goog.locale.registerTimeZoneSelectedIds = function(dataObj, localeName) {
<a name="line301"></a>  goog.locale.registerResource(
<a name="line302"></a>      dataObj, goog.locale.Resource.TIME_ZONE_SELECTED_IDS, localeName);
<a name="line303"></a>};
<a name="line304"></a>
<a name="line305"></a>
<a name="line306"></a>/**
<a name="line307"></a> * Registers the TimeZoneSelectedShortNames constants object for a given
<a name="line308"></a> *     locale name.
<a name="line309"></a> * @param {Object} dataObj The resource object.
<a name="line310"></a> * @param {string} localeName Locale ID.
<a name="line311"></a> */
<a name="line312"></a>goog.locale.registerTimeZoneSelectedShortNames = function(dataObj, localeName) {
<a name="line313"></a>  goog.locale.registerResource(
<a name="line314"></a>      dataObj, goog.locale.Resource.TIME_ZONE_SELECTED_SHORT_NAMES, localeName);
<a name="line315"></a>};
<a name="line316"></a>
<a name="line317"></a>
<a name="line318"></a>/**
<a name="line319"></a> * Registers the TimeZoneSelectedLongNames constants object for a given locale
<a name="line320"></a> *     name.
<a name="line321"></a> * @param {Object} dataObj The resource object.
<a name="line322"></a> * @param {string} localeName Locale ID.
<a name="line323"></a> */
<a name="line324"></a>goog.locale.registerTimeZoneSelectedLongNames = function(dataObj, localeName) {
<a name="line325"></a>  goog.locale.registerResource(
<a name="line326"></a>      dataObj, goog.locale.Resource.TIME_ZONE_SELECTED_LONG_NAMES, localeName);
<a name="line327"></a>};
<a name="line328"></a>
<a name="line329"></a>
<a name="line330"></a>/**
<a name="line331"></a> * Registers the TimeZoneAllLongNames constants object for a given locale name.
<a name="line332"></a> * @param {Object} dataObj The resource object.
<a name="line333"></a> * @param {string} localeName Locale ID.
<a name="line334"></a> */
<a name="line335"></a>goog.locale.registerTimeZoneAllLongNames = function(dataObj, localeName) {
<a name="line336"></a>  goog.locale.registerResource(
<a name="line337"></a>      dataObj, goog.locale.Resource.TIME_ZONE_ALL_LONG_NAMES, localeName);
<a name="line338"></a>};
<a name="line339"></a>
<a name="line340"></a>
<a name="line341"></a>/**
<a name="line342"></a> * Retrieve specified resource for certain locale.
<a name="line343"></a> * @param {string} resourceName String that represents the type of resource.
<a name="line344"></a> * @param {string=} opt_locale Locale ID, if not given, current locale
<a name="line345"></a> *     will be assumed.
<a name="line346"></a> * @return {Object|undefined} The resource object that hold all the resource
<a name="line347"></a> *     data, or undefined if not available.
<a name="line348"></a> */
<a name="line349"></a>goog.locale.getResource = function(resourceName, opt_locale) {
<a name="line350"></a>  var locale = opt_locale ? opt_locale : goog.locale.getLocale();
<a name="line351"></a>
<a name="line352"></a>  if (!(resourceName in goog.locale.resourceRegistry_)) {
<a name="line353"></a>    return undefined;
<a name="line354"></a>  }
<a name="line355"></a>  return goog.locale.resourceRegistry_[resourceName][locale];
<a name="line356"></a>};
<a name="line357"></a>
<a name="line358"></a>
<a name="line359"></a>/**
<a name="line360"></a> * Retrieve specified resource for certain locale with fallback. For example,
<a name="line361"></a> * request of &#39;zh_CN&#39; will be resolved in following order: zh_CN, zh, en.
<a name="line362"></a> * If none of the above succeeds, of if the resource as indicated by
<a name="line363"></a> * resourceName does not exist at all, undefined will be returned.
<a name="line364"></a> *
<a name="line365"></a> * @param {string} resourceName String that represents the type of resource.
<a name="line366"></a> * @param {string=} opt_locale locale ID, if not given, current locale
<a name="line367"></a> *     will be assumed.
<a name="line368"></a> * @return {Object|undefined} The resource object for desired locale.
<a name="line369"></a> */
<a name="line370"></a>goog.locale.getResourceWithFallback = function(resourceName, opt_locale) {
<a name="line371"></a>  var locale = opt_locale ? opt_locale : goog.locale.getLocale();
<a name="line372"></a>
<a name="line373"></a>  if (!(resourceName in goog.locale.resourceRegistry_)) {
<a name="line374"></a>    return undefined;
<a name="line375"></a>  }
<a name="line376"></a>
<a name="line377"></a>  if (locale in goog.locale.resourceRegistry_[resourceName]) {
<a name="line378"></a>    return goog.locale.resourceRegistry_[resourceName][locale];
<a name="line379"></a>  }
<a name="line380"></a>
<a name="line381"></a>  // if locale has multiple parts (2 atmost in reality), fallback to base part.
<a name="line382"></a>  var locale_parts = locale.split(&#39;_&#39;);
<a name="line383"></a>  if (locale_parts.length &gt; 1 &amp;&amp;
<a name="line384"></a>      locale_parts[0] in goog.locale.resourceRegistry_[resourceName]) {
<a name="line385"></a>    return goog.locale.resourceRegistry_[resourceName][locale_parts[0]];
<a name="line386"></a>  }
<a name="line387"></a>
<a name="line388"></a>  // otherwise, fallback to &#39;en&#39;
<a name="line389"></a>  return goog.locale.resourceRegistry_[resourceName][&#39;en&#39;];
<a name="line390"></a>};
<a name="line391"></a>
<a name="line392"></a>
<a name="line393"></a>// Export global functions that are used by the date time constants files.
<a name="line394"></a>// See http://go/js_locale_data
<a name="line395"></a>var registerLocalNameConstants = goog.locale.registerLocaleNameConstants;
<a name="line396"></a>
<a name="line397"></a>var registerTimeZoneSelectedIds = goog.locale.registerTimeZoneSelectedIds;
<a name="line398"></a>var registerTimeZoneSelectedShortNames =
<a name="line399"></a>    goog.locale.registerTimeZoneSelectedShortNames;
<a name="line400"></a>var registerTimeZoneSelectedLongNames =
<a name="line401"></a>    goog.locale.registerTimeZoneSelectedLongNames;
<a name="line402"></a>var registerTimeZoneAllLongNames = goog.locale.registerTimeZoneAllLongNames;
</pre>


</body>
</html>
